cmake_minimum_required(VERSION 3.21)
project(imu_gps_fusion)

set(CMAKE_CXX_STANDARD 14)

find_package(Eigen3 REQUIRED)

include_directories(
        Eigen3_INCLUDE_DIRS
        third_party/GeographicLib/include
        include)

add_subdirectory(third_party/GeographicLib)

add_library(
        imu_gps_fusion_lib
        src/imu_gps_fusion.cpp
        src/imu_processer.cpp
        src/gps_processer.cpp
        src/initalizer.cpp
)

target_link_libraries(
        imu_gps_fusion_lib
        ${EIGEN3_LIBS}
        libGeographiccc
        )
